﻿<UserControl x:Class="BookCaching.CustomControls.UnregisteredUserData"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    d:DesignHeight="480" d:DesignWidth="480">
    
    <ScrollViewer>
        <StackPanel x:Name="LayoutRoot" Background="{Binding Source={StaticResource CurrentSettings}, Path=BackgroundColor, Mode=TwoWay}" Orientation="Vertical">
            <TextBlock x:Name="usernameLabel" 
                       Text="{Binding ConverterParameter=UsernameLabel, Converter={StaticResource LocalizedStrings}, Source={StaticResource LocalizedStrings}}"
                       Foreground="{Binding Source={StaticResource CurrentSettings}, Path=ForegroundColor, Mode=TwoWay}"
                       TextAlignment="Left" />
            <TextBox x:Name="usernameText"
                     TextAlignment="Left"
                     BorderBrush="{Binding Source={StaticResource CurrentSettings}, Path=ForegroundColor, Mode=TwoWay}"/>
            
            <TextBlock x:Name="passwordLabel" 
                       Text="{Binding ConverterParameter=PasswordLabel, Converter={StaticResource LocalizedStrings}, Source={StaticResource LocalizedStrings}}"
                       Foreground="{Binding Source={StaticResource CurrentSettings}, Path=ForegroundColor, Mode=TwoWay}"
                       TextAlignment="Left" />
            <PasswordBox x:Name="passwordText"
                         BorderBrush="{Binding Source={StaticResource CurrentSettings}, Path=ForegroundColor, Mode=TwoWay}"/>

            <Button x:Name="loginButton"                    
                    Click="LoginButton_Click"
                    Content="{Binding ConverterParameter=LoginButton, Converter={StaticResource LocalizedStrings}, Source={StaticResource LocalizedStrings}}"
                    Style="{StaticResource ButtonInvertedColors}" />
            <Button x:Name="registerButton"
                    Visibility="Collapsed"
                    Click="RegisterButton_Click"
                    Content="{Binding ConverterParameter=RegisterButton, Converter={StaticResource LocalizedStrings}, Source={StaticResource LocalizedStrings}}"
                    Style="{StaticResource ButtonInvertedColors}" />            
            <Button x:Name="forgottenPasswordButton"
                    Visibility="Collapsed"
                    Click="ForgottenPasswordButton_Click"
                    Content="{Binding ConverterParameter=ForgottenPasswordButton, Converter={StaticResource LocalizedStrings}, Source={StaticResource LocalizedStrings}}"
                    Style="{StaticResource ButtonInvertedColors}" />
        </StackPanel>
    </ScrollViewer>
</UserControl>
